package org.dromara.bean.domain.bo;

import org.dromara.bean.domain.HisGoodsCar;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 购物车业务对象 his_goods_car
 *
 * @author Lion Li
 * @date 2024-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HisGoodsCar.class, reverseConvertGenerate = false)
public class HisGoodsCarBo extends BaseEntity {

    /**
     * id
     */
//    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属会员
     */
//    @NotNull(message = "所属会员不能为空", groups = { AddGroup.class, EditGroup.class })
//    private Long memberId;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsId;

    /**
     * 数量
     */
    private Long count;


}
